package com.hlkj.baidu_push;

public class TestBaiduPush {

	public static void main(String[] args) {
		// 短信
		// BaiduPush baiduPush = new BaiduPush("POST",
		// "Sq8aeiNmZg5f1sArWrSdEgnuprhEbTG7", "3VOb7EHHrsQmkt5GwoGtfZxf");
		//		
		// Message message = new Message();
		// message.setTitle("Test");
		// message.setContent("作者：朱奎...");
		// JSONObject jsonObject = JSONObject.fromObject(message);
		// System.out.println("PUSH:" +
		// baiduPush.PushMess(jsonObject.toString()));

		// 提醒
		BaiduPush baiduPush = new BaiduPush("POST",
				"Sq8aeiNmZg5f1sArWrSdEgnuprhEbTG7", "3VOb7EHHrsQmkt5GwoGtfZxf");

		System.out.println("PUSH:"
				+ baiduPush.PushNotifySimple("测试提醒", "测试内容...", null, true));

		// 提醒
		// BaiduPush baiduPush = new BaiduPush("POST",
		// "Sq8aeiNmZg5f1sArWrSdEgnuprhEbTG7", "3VOb7EHHrsQmkt5GwoGtfZxf");
		// Message message = new Message();
		// message.setTitle("Test");
		// message.setContent("作者：朱奎...");
		// JSONObject jsonObject = JSONObject.fromObject(message);
		// System.out.println("PUSH:"
		// + baiduPush.PushNotifySimple("测试提醒", jsonObject.toString(),
		// "988124157589018548", false));
	}
}